next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
1
How would you make a custom class usable in a for loop?
Intermediate
2
How do __enter__ and __exit__ work together to implement the context manager protocol?
Advanced
3
How does Python implement inheritance, and what is the Method Resolution Order (MRO)?
Advanced
4
What are dataclasses, and how do they reduce boilerplate compared to manually writing __init__, __eq__, and __repr__?
Intermediate
5
What is the @property decorator, and what problem does it solve compared to plain getter/setter methods?
Intermediate
6
What is the difference between method overriding and method overloading, and why doesn't Python natively support overloading?
Intermediate
7
What problem does the diamond inheritance pattern cause, and how does Python's MRO resolve it?
Advanced
8
What is the difference between a class and an instance in Python?
Beginner
9
How does Python implement encapsulation given that it has no true 'private' access modifiers?
Intermediate
10
What is the purpose of self in instance methods, and why must it be explicitly declared in Python?
Beginner
11
What is the difference between __str__ and __repr__, and what convention should __repr__ follow?
Intermediate
12
What is a metaclass, and what is type's relationship to every class in Python?
Advanced
13
What is the purpose of __eq__ and __hash__, and why must they be implemented consistently?
Advanced
14
What is a descriptor, and how do @property and ORMs like Django's models rely on the descriptor protocol?
Advanced
15
What is the difference between an instance method, a class method, and a static method?
Intermediate
16
What is composition, and why is 'favor composition over inheritance' often recommended?
Advanced
17
What are dunder (magic) methods, and how do they enable operator overloading?
Intermediate
18
When would you use a metaclass instead of a class decorator or __init_subclass__?
Advanced
19
How do abstract base classes (abc.ABC) enforce interface contracts in Python?
Advanced
All Topics
1
Fundamentals
0/3 topics · 0%
Basics
Control Flow and Functions
Data Structures
2
Working with data
0/13 topics · 0%
Comprehensions & Functional Programming
Iterators, Generators & Decorators
Object-Oriented Programming
Exception Handling & Debugging
Concurrency & Parallelism
Performance & Optimization
Testing
Security
Modules, Packaging & Environment
Type Hinting & Modern Python
System Design & Architecture with Python
Best Practices & Design Patterns
Edge Cases & Tricky Interview Questions
Share
this topic
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.